import re
string = 'My moral standing is:0.98765'
str1 = re.split('[^0-9.]+', string)[1]
print(float(str1))
